package tools;

/**
 * Debug helper.
 *
 */
public class Debug {
	private static Boolean enabled = true;
	
	public static void setEnabled(Boolean enabled){
		Debug.enabled = enabled;
	}
	/**
	 * Prints debug message.
	 */
	public static void println(String msg){
		if(enabled){
			System.out.println("[DEBUG] "+msg);
		}
	}
	
	/**
	 * Prints error message.
	 */
	public static void err(String msg){
		if(enabled){
			System.out.println("[ERROR] "+msg);
		}
	}
}